package com.itheima.service.impl;


import com.itheima.domain.User;
import com.itheima.service.UserService;
import org.apache.dubbo.config.annotation.Service;

//@Service
@Service//将这个类提供的服务对外发布,将访问的地址注册到注册中心中
public class UserServiceImpl implements UserService {
    public String sayHello() {
        return "Hello Dubbo ~~~";
    }

    public User findUserById(int id) {
        System.out.println("3...");
        //查询User对象
        User user = new User(1,"zhangsan","123");

        return user;
    }
}
